package com.mall.search;

import com.alibaba.druid.spring.boot.autoconfigure.DruidDataSourceAutoConfigure;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.data.elasticsearch.repository.config.EnableElasticsearchRepositories;

/**
 * @author Darren
 * @date 2022-08-22 15:19
 * Description：
 */
@SpringBootApplication(exclude = {DataSourceAutoConfiguration.class, DruidDataSourceAutoConfigure.class},
        scanBasePackages = {"com.mall.search", "com.mall.goods"})
@EnableElasticsearchRepositories(basePackages = "com.mall.search.mapper")
public class MallSearchServiceApplication {
    public static void main(String[] args) {
        SpringApplication.run(MallSearchServiceApplication.class, args);
    }
}
